package com.info33.platform.common.mvc.dao;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

public interface SqlDao extends BaseMapper<Object> {
	
	HashMap<String, Object> selectFirst(@Param("sql") String sql);
	
	/*HashMap<String, Object> selectFirst(@Param("sql") String sql,Object... params);*/

	List<HashMap<String, Object>> selectAll(@Param("sql") String sql);

	/*List<HashMap<String, Object>> selectAll(@Param("sql") String sql,Object... params);*/

	IPage<HashMap<String, Object>> selectListByPage(IPage<?> page, @Param("sql") String sql);

	/*IPage<HashMap<String, Object>> selectListByPage(IPage<?> page, @Param("sql") String sql,Object... params);*/
	
	Integer executeUpdate(@Param("sql") String sql);

	Integer executeDelete(@Param("sql") String sql);
}




